﻿2026-08-18T19:28:43.8821870Z ##[group]Run $root = $env:SPT_CI_TEST_TMP
2026-08-18T19:28:43.8822174Z [36;1m$root = $env:SPT_CI_TEST_TMP[0m
2026-08-18T19:28:43.8822382Z [36;1mif ([string]::IsNullOrEmpty($root)) {[0m
2026-08-18T19:28:43.8822706Z [36;1m  Write-Host 'PUMP188_DIAG_SINK_DUMP: SPT_CI_TEST_TMP unset — nothing to search'[0m
2026-08-18T19:28:43.8823022Z [36;1m  exit 0[0m
2026-08-18T19:28:43.8823149Z [36;1m}[0m
2026-08-18T19:28:43.8823364Z [36;1m# The sink now lands in the PROCESS TEMP ROOT (`env::temp_dir()`), not under[0m
2026-08-18T19:28:43.8823741Z [36;1m# `spt_home()` — see the role-B step for the teardown that forced the move.[0m
2026-08-18T19:28:43.8824128Z [36;1m# The env-loss bound moves with it: on Windows `temp_dir()` reads TMP then[0m
2026-08-18T19:28:43.8824488Z [36;1m# TEMP and falls back to the profile/Windows temp, so a child that loses the[0m
2026-08-18T19:28:43.8824851Z [36;1m# inherited block (this is the box where `spawn_detached` is documented to[0m
2026-08-18T19:28:43.8825207Z [36;1m# rebuild it) drops its sink THERE. Those two fallbacks are checked[0m
2026-08-18T19:28:43.8825588Z [36;1m# non-recursively — a -Recurse over the whole profile is not a diagnostic,[0m
2026-08-18T19:28:43.8825963Z [36;1m# it is an outage. The canonical-home arm is retired with the move: the sink[0m
2026-08-18T19:28:43.8826290Z [36;1m# no longer resolves through spt_home(). Read only.[0m
2026-08-18T19:28:43.8826515Z [36;1m$found = 0[0m
2026-08-18T19:28:43.8826908Z [36;1mWrite-Host "PUMP188_DIAG_SINK_DUMP: searching $root (recursive) + TMP/TEMP fallbacks"[0m
2026-08-18T19:28:43.8827653Z [36;1mGet-ChildItem -LiteralPath $root -Filter 'pump188-diag.log' -Recurse -File -ErrorAction SilentlyContinue | ForEach-Object {[0m
2026-08-18T19:28:43.8828154Z [36;1m  $found++[0m
2026-08-18T19:28:43.8828399Z [36;1m  $n = (Get-Content -LiteralPath $_.FullName | Measure-Object -Line).Lines[0m
2026-08-18T19:28:43.8828803Z [36;1m  Write-Host "--- PUMP188_DIAG sink: $($_.FullName) ($n lines) ---"[0m
2026-08-18T19:28:43.8829119Z [36;1m  Get-Content -LiteralPath $_.FullName | Write-Host[0m
2026-08-18T19:28:43.8829338Z [36;1m}[0m
2026-08-18T19:28:43.8829551Z [36;1mforeach ($fb in @($env:USERPROFILE, (Join-Path $env:SystemRoot 'Temp'))) {[0m
2026-08-18T19:28:43.8829863Z [36;1m  if ([string]::IsNullOrEmpty($fb)) { continue }[0m
2026-08-18T19:28:43.8830098Z [36;1m  $p = Join-Path $fb 'pump188-diag.log'[0m
2026-08-18T19:28:43.8830311Z [36;1m  if (Test-Path -LiteralPath $p) {[0m
2026-08-18T19:28:43.8830504Z [36;1m    $found++[0m
2026-08-18T19:28:43.8830722Z [36;1m    $n = (Get-Content -LiteralPath $p | Measure-Object -Line).Lines[0m
2026-08-18T19:28:43.8831036Z [36;1m    Write-Host "--- PUMP188_DIAG sink: $p ($n lines) ---"[0m
2026-08-18T19:28:43.8831297Z [36;1m    Get-Content -LiteralPath $p | Write-Host[0m
2026-08-18T19:28:43.8831500Z [36;1m  }[0m
2026-08-18T19:28:43.8831612Z [36;1m}[0m
2026-08-18T19:28:43.8831859Z [36;1mWrite-Host "PUMP188_DIAG_SINK_DUMP: $found sink file(s) (sandbox + temp fallbacks)"[0m
2026-08-18T19:28:43.8835831Z shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
2026-08-18T19:28:43.8836074Z env:
2026-08-18T19:28:43.8836362Z   SPT_CI_TEST_TMP: C:\actions-runner\_work\_temp\spt-test-tmp-32174970789-1-4ca14041bf784f1591bde92766b5a89a
2026-08-18T19:28:43.8836849Z   TEMP: C:\actions-runner\_work\_temp\spt-test-tmp-32174970789-1-4ca14041bf784f1591bde92766b5a89a
2026-08-18T19:28:43.8837294Z   TMP: C:\actions-runner\_work\_temp\spt-test-tmp-32174970789-1-4ca14041bf784f1591bde92766b5a89a
2026-08-18T19:28:43.8837606Z ##[endgroup]
2026-08-18T19:28:44.1219046Z PUMP188_DIAG_SINK_DUMP: searching C:\actions-runner\_work\_temp\spt-test-tmp-32174970789-1-4ca14041bf784f1591bde92766b5a89a (recursive) + TMP/TEMP fallbacks
2026-08-18T19:28:44.1507941Z PUMP188_DIAG_SINK_DUMP: 0 sink file(s) (sandbox + temp fallbacks)
